package com.ethink.order.common.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ethink.order.api.model.TobSaleAndSettleModel;
import com.ethink.order.api.model.TobSaleOrderGoodsModeModel;
import com.ethink.order.api.model.TobSaleOrderModel;
import com.ethink.order.api.request.TobSaleAndSettlePageQueryRequest;
import com.ethink.order.api.request.TobSaleOrderPageGoodsModeQueryRequest;
import com.ethink.order.api.request.TobSaleOrderPageQueryRequest;
import com.ethink.order.common.entity.TobSaleOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * TOB销售单 Mapper接口
 *
 * @author default
 * @date 2022-11-16
 */
@Mapper
public interface TobSaleOrderMapper extends MyBaseMapper<TobSaleOrder> {

    Page<TobSaleOrderModel> pageQuery(Page buildPage, @Param("request") TobSaleOrderPageQueryRequest request);

    Page<TobSaleAndSettleModel> tobSaleAndSettlePageQuery(Page buildPage, @Param("request") TobSaleAndSettlePageQueryRequest request);

    /**
     * 分页查询
     *
     * @param buildPage
     * @param request
     * @return
     */
    Page<TobSaleOrderGoodsModeModel> pageQueryTobSaleOrderPageMode(Page buildPage, @Param("request") TobSaleOrderPageGoodsModeQueryRequest request);

}